//
//  MHOrderListCell.m
//  M-Saler
//
//  Created by Teresa on 2020/5/21.
//  Copyright © 2020 Teresa. All rights reserved.
//

#import "MHOrderListCell.h"

@interface MHOrderListCell()
@property (weak, nonatomic) IBOutlet UILabel *orderNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderDateLabel;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *userTelLabel;
@property (weak, nonatomic) IBOutlet UILabel *MoneyLabel;//€

@end

@implementation MHOrderListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

+(CGFloat)height{
    return 110;
}

-(void)setModel:(MHOrderInfoModel *)model{
    _model = model;
    self.orderNumLabel.text = [NSString stringWithFormat:@"%ld",model.order_id.integerValue];
    self.orderDateLabel.text = model.create_time;
    self.userNameLabel.text = model.name;
    self.userTelLabel.text = model.phone;
    self.MoneyLabel.text = [NSString stringWithFormat:@"%.2f€", model.total_amount.floatValue];
}

@end
